<?php 
namespace EasyRoute;

class Dispatcher
{
	protected $staticRoutes = [];
	protected $methodToRegexToRoutesMap = [];

	const NOT_FOUND = 0;
    const FOUND = 1;
    const METHOD_NOT_ALLOWED = 2;

    public function addRoute($httpMethod, $route, $hanlder){
    	$routeData = $this->parse($route);
    	foreach ((array) $httpMethod as $method) {
    		if ($this->isStaticRoute($routeData)) {
                $this->addStaticRoute($httpMethod, $routeData, $handler);
            } else {
                $this->addVariableRoute($httpMethod, $routeData, $handler);
            }
    	}
    }

    protected function isStaticRoute($routeData){
    	return count($routeData[1]) === 0;
    }

    protected function addStaticRoute(){
    	
    }
}
